<html style="height: 100%">
{include file="public/header" /}
<link rel="stylesheet" href="/static/css/home.css"/>
<body style="height: 100%">
<div class="weui-tab">
    <div class="weui-tab__bd" style="padding-bottom: 53px;">
        <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
            <div class="swiper-container" data-space-between='10' data-pagination='.swiper-pagination' data-autoplay="1000">
                <div class="swiper-wrapper">
                    <div class="swiper-slide"><img src="/static/img/swiper-1.jpg" class="swiper_img" alt="" width="50" height="50"></div>
                    <div class="swiper-slide"><img src="/static/img/swiper-2.jpg" class="swiper_img" alt="" width="50" height="50"></div>
                    <div class="swiper-slide"><img src="/static/img/swiper-3.jpg" class="swiper_img" alt="" width="50" height="50"></div>
                </div>
                <div class="swiper-pagination"></div>
                <div class="swiper-scrollbar"></div>
            </div>
          
            <div class="weui-cells">
                {volist name="list" id="vo"}
                <a class="weui-cell weui-cell_access" href="{:url('reward',['id'=>$vo.id])}">
                    <div class="weui-cell__hd">
                        <img src="{$vo.wxuser.headimgurl}">
                    </div>
                    <div class="weui-cell__bd">
                        <p>{$vo.wxuser.nickname}</p>
                    </div>
                    <div class="weui-cell__ft">
                        {$vo.title}
                    </div>
                </a>
                {/volist}

            </div>
        </div>
        <div id="tab2" class="weui-tab__bd-item">
            <form>
                <div class="weui-cells weui-cells_form">
                    <div class="weui-cell">
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="text" placeholder="请输入标题" name="title">
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__bd">
                            <textarea class="weui-textarea" placeholder="请输入内容" rows="3" name="content"></textarea>
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="number" placeholder="请输入红包金额" name="all_money_num">
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="number" placeholder="请输入人数" name="person">
                        </div>
                    </div>
                    <!--<div class="weui-cell">-->
                    <!--<div class="weui-cell__bd">-->
                    <!--<div class="weui-cell__bd">-->
                    <!--<input class="weui-input" id="home-city" type="text" name="area" placeholder="请选择城市">-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--</div>-->
                    
                </div>
            </form>
            <button class="weui-btn weui-btn_primary" type="button" id="submit">提交</button>
        </div>
        <div id="tab3" class="weui-tab__bd-item">
            <h1>3</h1>
        </div>
        <div id="tab4" class="weui-tab__bd-item">
            <div class="weui-grid__icon" style="width: 70px;height: 70px">
                <img src="{$user.wxuser.headimgurl}" alt="">
            </div>
            <div class="weui-msg__text-area">
                <p class="weui-msg__desc" style="text-align:center;margin: 5px 0px;font-size: 20px;color: #000;">{$user.money}元</p>

            </div>
            <div class='demos-content-padded'>
                <a href="javascript:;" class="weui-btn weui-btn_primary">点击兑换零钱</a>
            </div>

            <div class="weui-cells">
                <div class="weui-cell weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>我共抢到</p>
                    </div>
                    <div class="weui-cell__ft">8.88元</div>
                </div>
                <div class="weui-cell  weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>我共发出</p>
                    </div>
                    <div class="weui-cell__ft">188元</div>
                </div>
            </div>
            <div class="weui-cells">
                <div class="weui-cell weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>我的朋友</p>
                    </div>
                    <div class="weui-cell__ft">88个</div>
                </div>
                <div class="weui-cell weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>接收新通知</p>
                    </div>
                    <div class="weui-cell__ft" style="font-size: 0">
                        <span style="vertical-align:middle; font-size: 17px;">详细信息</span>
                        <span class="weui-badge weui-badge_dot" style="margin-left: 5px;margin-right: 5px;"></span>
                    </div>
                </div>
                <div class="weui-cell weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>发布者身份</p>
                    </div>
                    <div class="weui-cell__ft">设置</div>
                </div>
                <div class="weui-cell weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>我的卡包</p>
                    </div>
                    <div class="weui-cell__ft">查看</div>
                </div>
                <div class="weui-cell weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>我的抢购</p>
                    </div>
                    <div class="weui-cell__ft">查看</div>
                </div>
                <div class="weui-cell weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>我的抢购</p>
                    </div>
                    <div class="weui-cell__ft">查看</div>
                </div>
                <div class="weui-cell weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>我的抢购</p>
                    </div>
                    <div class="weui-cell__ft">查看</div>
                </div>
                <div class="weui-cell weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>我的抢购</p>
                    </div>
                    <div class="weui-cell__ft">查看</div>
                </div>
                <div class="weui-cell weui-cell_access">
                    <div class="weui-cell__hd">
                        <img src="/static/img/hbao.png" style="width: 1.2rem;height: 1.2rem;">
                    </div>
                    <div class="weui-cell__bd">
                        <p>我的抢购</p>
                    </div>
                    <div class="weui-cell__ft">查看</div>
                </div>

            </div>
        </div>

    </div>


{include file="public/bottom" /}
{include file="public/footer" /}
<script>
  
    $('#submit').click(function () {
        var params = {
            url: "{:url('addActivity')}",
            data: $('form').serialize(),
            type: 'post',
            sCallback: function (res) {
                window.location.href = res.msg;
            }
        }
        common.request(params);
    });
</script>
</div>
</body>
</html>